﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AgorApp.Roma.Model.DataTransferObjects.Utils
{
    /// <summary>
    /// 
    /// </summary>
    internal interface IEntityObjectState
    {
        /// <summary>
        /// Gets or sets the state of the object.
        /// </summary>
        /// <value>
        /// The state of the object.
        /// </value>
        EntityObjectState ObjectState { get; set; }
    }

    /// <summary>
    /// 
    /// </summary>
    [Flags]
    public enum EntityObjectState
    {
        Detached = 1,
        Unchanged = 2,
        Added = 4,
        Deleted = 8,
        Modified = 16,
    }
}
